package pos.gengshen.com.gspos.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import android.widget.Toast;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import pos.gengshen.com.gspos.R;

/**
 * Created by Administrator on 2018/8/3/003.
 */

public class IntegralDetailActivity extends AppCompatActivity{

    private TextView userName,integralText;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_integraldetal);
        userName = (TextView)findViewById(R.id.username);
        integralText = (TextView) findViewById(R.id.integralText);
        Intent intent = getIntent();
        String obj = intent.getStringExtra("user");
        JSONObject jo = JSON.parseObject(obj);
        String nick = jo.getString("nick");
        String integral = jo.getString("integral");
        userName.append(nick);
        integralText.append(integral);

        //Toast.makeText(IntegralDetailActivity.this,obj,Toast.LENGTH_SHORT).show();



    }
}
